package com.ktjy.dao.impl;

import com.ktjy.dao.PetDao;
import com.ktjy.entity.Pet;
import org.springframework.stereotype.Repository;

@Repository("petDaoMySQL")
public class PetDaoMySqlImpl implements PetDao {


    @Override
    public int insertPet(Pet pet) {
        //模拟插入数据
        System.out.println("将宠物" + pet.getName() + "插入到MySql数据库");
        return 1;
    }
}
